home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / tontie_h.swf / scripts / DefineSprite_241 / frame_7 / PlaceObject2_164_1 / CLIPACTIONRECORD onClipEvent(load).as
Text File  |  2010-03-13  |  712b  |  32 lines

  1. onClipEvent(load){
  2.    if(_root.hammer_lv >= 2)
  3.    {
  4.       i = Math.floor(Math.random() * 2);
  5.       if(i != 0)
  6.       {
  7.          with(_parent)
  8.          {
  9.             nextFrame();
  10.          }
  11.       }
  12.    }
  13.    if(_parent._parent._name == "up_boad")
  14.    {
  15.       with(this)
  16.       {
  17.          gotoAndStop("info");
  18.       }
  19.    }
  20.    hp = 3;
  21.    attack = 0;
  22.    score = 50;
  23.    _parent.item = "life";
  24.    _parent._parent._parent._parent.hp = hp;
  25.    _parent._parent._parent._parent.attack = attack;
  26.    _parent._parent._parent._parent.score = score;
  27.    _parent._parent._parent._parent.coin = coin;
  28.    _parent._parent.life = hp;
  29.    _parent._parent.damage = - attack;
  30.    _parent._parent.point = score;
  31. }
  32.